import React, { Component } from 'react'

class BaseComponent extends Component{
    constructor(props) {
        super(props);
    }

    setForm = (field, value) =>{
        let form = this.state.form
        if(!form){ form = {} }
        form[field] = value
        this.setState({ form })
    }
}

React.BaseComponent = BaseComponent